﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Madrigal.Lib
{

    public struct Resource
    {
        char[] resFile;
        Int32 dwOffset;
        Int32 dwFileSize;
        byte byEncryptionKey;
        bool bEncryption;
    }

    public class CResFile
    {
        public CResFile(string filename, FileMode mode) 
        {
            b_ResourceInFile = false;
            m_nFileSize = 0;
            m_nFileBeginPosition = 0;
            m_nFileCurrentPosition = 0;
            m_nFileEndPosition = 0;
            m_bEncryption = false;

            //Open(filename, mode);
        }
        public CResFile() { }

        bool b_ResourceInFile;
        char[] m_szFileName = new char[128];
        Int32 m_nFileSize;
        Int32 m_nFileBeginPosition;
        Int32 m_nFileCurrentPosition;
        Int32 m_nFileEndPosition;
        bool m_bEncryption;
        byte m_byEncryptionKey;
        static void AddResource(char resName) { }


        //Security
        public static char[] m_szResVer = new char[100];
        public static Dictionary<string, string> m_dictAuth;
        public static void LoadAuthFile() { }

        //public static CMapStringToPtr m_mapResource;
    }

}
